Optimal. Leaf size=245 \[ \frac {2 \tan ^{-1}\left (\frac {\sqrt [3]{b}+\sqrt [3]{a} \tan \left (\frac {1}{2} (c+d x)\right )}{\sqrt {a^{2/3}-b^{2/3}}}\right )}{3 a^{2/3} \sqrt {a^{2/3}-b^{2/3}} d}+\frac {2 \tan ^{-1}\left (\frac {(-1)^{2/3} \sqrt [3]{b}+\sqrt [3]{a} \tan \left (\frac {1}{2} (c+d x)\right )}{\sqrt {a^{2/3}+\sqrt [3]{-1} b^{2/3}}}\right )}{3 a^{2/3} \sqrt {a^{2/3}+\sqrt [3]{-1} b^{2/3}} d}-\frac {2 \tan ^{-1}\left (\frac {\sqrt [3]{-1} \left (\sqrt [3]{b}+(-1)^{2/3} \sqrt [3]{a} \tan \left (\frac {1}{2} (c+d x)\right )\right )}{\sqrt {a^{2/3}-(-1)^{2/3} b^{2/3}}}\right )}{3 a^{2/3} \sqrt {a^{2/3}-(-1)^{2/3} b^{2/3}} d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.18, antiderivative size = 245, normalized size of antiderivative = 1.00, number of steps
used = 11, number of rules used = 4, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.286, Rules used = {3292, 2739,
632, 210} \begin {gather*} \frac {2 \text {ArcTan}\left (\frac {\sqrt [3]{a} \tan \left (\frac {1}{2} (c+d x)\right )+\sqrt [3]{b}}{\sqrt {a^{2/3}-b^{2/3}}}\right )}{3 a^{2/3} d \sqrt {a^{2/3}-b^{2/3}}}+\frac {2 \text {ArcTan}\left (\frac {\sqrt [3]{a} \tan \left (\frac {1}{2} (c+d x)\right )+(-1)^{2/3} \sqrt [3]{b}}{\sqrt {a^{2/3}+\sqrt [3]{-1} b^{2/3}}}\right )}{3 a^{2/3} d \sqrt {a^{2/3}+\sqrt [3]{-1} b^{2/3}}}-\frac {2 \text {ArcTan}\left (\frac {\sqrt [3]{-1} \left ((-1)^{2/3} \sqrt [3]{a} \tan \left (\frac {1}{2} (c+d x)\right )+\sqrt [3]{b}\right )}{\sqrt {a^{2/3}-(-1)^{2/3} b^{2/3}}}\right )}{3 a^{2/3} d \sqrt {a^{2/3}-(-1)^{2/3} b^{2/3}}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 210
Rule 632
Rule 2739
Rule 3292
Rubi steps
\begin {align*} \int \frac {1}{a+b \sin ^3(c+d x)} \, dx &=\int \left (-\frac {1}{3 a^{2/3} \left (-\sqrt [3]{a}-\sqrt [3]{b} \sin (c+d x)\right )}-\frac {1}{3 a^{2/3} \left (-\sqrt [3]{a}+\sqrt [3]{-1} \sqrt [3]{b} \sin (c+d x)\right )}-\frac {1}{3 a^{2/3} \left (-\sqrt [3]{a}-(-1)^{2/3} \sqrt [3]{b} \sin (c+d x)\right )}\right ) \, dx\\ &=-\frac {\int \frac {1}{-\sqrt [3]{a}-\sqrt [3]{b} \sin (c+d x)} \, dx}{3 a^{2/3}}-\frac {\int \frac {1}{-\sqrt [3]{a}+\sqrt [3]{-1} \sqrt [3]{b} \sin (c+d x)} \, dx}{3 a^{2/3}}-\frac {\int \frac {1}{-\sqrt [3]{a}-(-1)^{2/3} \sqrt [3]{b} \sin (c+d x)} \, dx}{3 a^{2/3}}\\ &=-\frac {2 \text {Subst}\left (\int \frac {1}{-\sqrt [3]{a}-2 \sqrt [3]{b} x-\sqrt [3]{a} x^2} \, dx,x,\tan \left (\frac {1}{2} (c+d x)\right )\right )}{3 a^{2/3} d}-\frac {2 \text {Subst}\left (\int \frac {1}{-\sqrt [3]{a}+2 \sqrt [3]{-1} \sqrt [3]{b} x-\sqrt [3]{a} x^2} \, dx,x,\tan \left (\frac {1}{2} (c+d x)\right )\right )}{3 a^{2/3} d}-\frac {2 \text {Subst}\left (\int \frac {1}{-\sqrt [3]{a}-2 (-1)^{2/3} \sqrt [3]{b} x-\sqrt [3]{a} x^2} \, dx,x,\tan \left (\frac {1}{2} (c+d x)\right )\right )}{3 a^{2/3} d}\\ &=\frac {4 \text {Subst}\left (\int \frac {1}{-4 \left (a^{2/3}-b^{2/3}\right )-x^2} \, dx,x,-2 \sqrt [3]{b}-2 \sqrt [3]{a} \tan \left (\frac {1}{2} (c+d x)\right )\right )}{3 a^{2/3} d}+\frac {4 \text {Subst}\left (\int \frac {1}{-4 \left (a^{2/3}+\sqrt [3]{-1} b^{2/3}\right )-x^2} \, dx,x,-2 (-1)^{2/3} \sqrt [3]{b}-2 \sqrt [3]{a} \tan \left (\frac {1}{2} (c+d x)\right )\right )}{3 a^{2/3} d}+\frac {4 \text {Subst}\left (\int \frac {1}{-4 \left (a^{2/3}-(-1)^{2/3} b^{2/3}\right )-x^2} \, dx,x,2 \sqrt [3]{-1} \sqrt [3]{b}-2 \sqrt [3]{a} \tan \left (\frac {1}{2} (c+d x)\right )\right )}{3 a^{2/3} d}\\ &=-\frac {2 \tan ^{-1}\left (\frac {\sqrt [3]{-1} \sqrt [3]{b}-\sqrt [3]{a} \tan \left (\frac {1}{2} (c+d x)\right )}{\sqrt {a^{2/3}-(-1)^{2/3} b^{2/3}}}\right )}{3 a^{2/3} \sqrt {a^{2/3}-(-1)^{2/3} b^{2/3}} d}+\frac {2 \tan ^{-1}\left (\frac {\sqrt [3]{b}+\sqrt [3]{a} \tan \left (\frac {1}{2} (c+d x)\right )}{\sqrt {a^{2/3}-b^{2/3}}}\right )}{3 a^{2/3} \sqrt {a^{2/3}-b^{2/3}} d}+\frac {2 \tan ^{-1}\left (\frac {(-1)^{2/3} \sqrt [3]{b}+\sqrt [3]{a} \tan \left (\frac {1}{2} (c+d x)\right )}{\sqrt {a^{2/3}+\sqrt [3]{-1} b^{2/3}}}\right )}{3 a^{2/3} \sqrt {a^{2/3}+\sqrt [3]{-1} b^{2/3}} d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 9 vs. order 3 in
optimal.
time = 0.12, size = 126, normalized size = 0.51 \begin {gather*} -\frac {2 i \text {RootSum}\left [-i b+3 i b \text {$\#$1}^2+8 a \text {$\#$1}^3-3 i b \text {$\#$1}^4+i b \text {$\#$1}^6\&,\frac {2 \tan ^{-1}\left (\frac {\sin (c+d x)}{\cos (c+d x)-\text {$\#$1}}\right ) \text {$\#$1}-i \log \left (1-2 \cos (c+d x) \text {$\#$1}+\text {$\#$1}^2\right ) \text {$\#$1}}{b-4 i a \text {$\#$1}-2 b \text {$\#$1}^2+b \text {$\#$1}^4}\&\right ]}{3 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 0.47, size = 83, normalized size = 0.34
method | result | size |
derivativedivides | \(\frac {\munderset {\textit {\_R} =\RootOf \left (a \,\textit {\_Z}^{6}+3 a \,\textit {\_Z}^{4}+8 b \,\textit {\_Z}^{3}+3 a \,\textit {\_Z}^{2}+a \right )}{\sum }\frac {\left (\textit {\_R}^{4}+2 \textit {\_R}^{2}+1\right ) \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-\textit {\_R} \right )}{\textit {\_R}^{5} a +2 \textit {\_R}^{3} a +4 \textit {\_R}^{2} b +\textit {\_R} a}}{3 d}\) | \(83\) |
default | \(\frac {\munderset {\textit {\_R} =\RootOf \left (a \,\textit {\_Z}^{6}+3 a \,\textit {\_Z}^{4}+8 b \,\textit {\_Z}^{3}+3 a \,\textit {\_Z}^{2}+a \right )}{\sum }\frac {\left (\textit {\_R}^{4}+2 \textit {\_R}^{2}+1\right ) \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-\textit {\_R} \right )}{\textit {\_R}^{5} a +2 \textit {\_R}^{3} a +4 \textit {\_R}^{2} b +\textit {\_R} a}}{3 d}\) | \(83\) |
risch | \(\munderset {\textit {\_R} =\RootOf \left (1+\left (729 a^{6} d^{6}-729 a^{4} b^{2} d^{6}\right ) \textit {\_Z}^{6}+243 a^{4} d^{4} \textit {\_Z}^{4}+27 a^{2} d^{2} \textit {\_Z}^{2}\right )}{\sum }\textit {\_R} \ln \left ({\mathrm e}^{i \left (d x +c \right )}+\left (-\frac {486 d^{5} a^{6}}{b}+486 b \,d^{5} a^{4}\right ) \textit {\_R}^{5}+\left (-\frac {81 i a^{5} d^{4}}{b}+81 i a^{3} b \,d^{4}\right ) \textit {\_R}^{4}+\left (-\frac {135 d^{3} a^{4}}{b}-27 a^{2} b \,d^{3}\right ) \textit {\_R}^{3}-\frac {27 i a^{3} d^{2} \textit {\_R}^{2}}{b}-\frac {9 d \,a^{2} \textit {\_R}}{b}-\frac {2 i a}{b}\right )\) | \(175\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] Result contains complex when optimal does not.
time = 1.49, size = 25429, normalized size = 103.79 \begin {gather*} \text {too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{a + b \sin ^{3}{\left (c + d x \right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 16.71, size = 609, normalized size = 2.49 \begin {gather*} \frac {\sum _{k=1}^6\ln \left (-\frac {8192\,a\,b^3\,\left (-729\,a^5+243\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,a^4\,b-324\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,a^4\,\mathrm {root}\left (d^6+27\,a^2\,d^4+243\,a^4\,d^2+729\,a^4\,\left (a^2-b^2\right ),d,k\right )+972\,a^3\,b^2+a^3\,b\,\mathrm {root}\left (d^6+27\,a^2\,d^4+243\,a^4\,d^2+729\,a^4\,\left (a^2-b^2\right ),d,k\right )\,243-162\,a^3\,{\mathrm {root}\left (d^6+27\,a^2\,d^4+243\,a^4\,d^2+729\,a^4\,\left (a^2-b^2\right ),d,k\right )}^2+648\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,a^2\,b^2\,\mathrm {root}\left (d^6+27\,a^2\,d^4+243\,a^4\,d^2+729\,a^4\,\left (a^2-b^2\right ),d,k\right )+216\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,a^2\,b\,{\mathrm {root}\left (d^6+27\,a^2\,d^4+243\,a^4\,d^2+729\,a^4\,\left (a^2-b^2\right ),d,k\right )}^2-72\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,a^2\,{\mathrm {root}\left (d^6+27\,a^2\,d^4+243\,a^4\,d^2+729\,a^4\,\left (a^2-b^2\right ),d,k\right )}^3+36\,a\,b\,{\mathrm {root}\left (d^6+27\,a^2\,d^4+243\,a^4\,d^2+729\,a^4\,\left (a^2-b^2\right ),d,k\right )}^3-9\,a\,{\mathrm {root}\left (d^6+27\,a^2\,d^4+243\,a^4\,d^2+729\,a^4\,\left (a^2-b^2\right ),d,k\right )}^4+24\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,b\,{\mathrm {root}\left (d^6+27\,a^2\,d^4+243\,a^4\,d^2+729\,a^4\,\left (a^2-b^2\right ),d,k\right )}^4-4\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,{\mathrm {root}\left (d^6+27\,a^2\,d^4+243\,a^4\,d^2+729\,a^4\,\left (a^2-b^2\right ),d,k\right )}^5\right )}{{\mathrm {root}\left (d^6+27\,a^2\,d^4+243\,a^4\,d^2+729\,a^4\,\left (a^2-b^2\right ),d,k\right )}^5}\right )\,\mathrm {root}\left (729\,a^4\,b^2\,d^6-729\,a^6\,d^6-243\,a^4\,d^4-27\,a^2\,d^2-1,d,k\right )}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________